package com.xiaoq.matrix.entity;

import java.io.Serializable;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;

import com.xiaoq.MongoEntity;


@Entity(value = "content_media_account",noClassnameStored=true)
public class ContentMediaAccountEntity extends MongoEntity implements Serializable{/**
	 * 
	 */
	@JsonIgnore
	@Transient
	private static final long serialVersionUID = 7773826972205490215L;
	
	private String merchantId; //商家ID
	private String mediaId; // 媒体ID
	private String account; // 媒体账号(uid)
	private String token; //token码
	private String refreshToken; //token刷新时间(一般借口会在token快过期之前返回一个刷新时间)
	private Long tokenTime; // 获取到api返回token的时间
	private Long tokenDuratio;  //这个一个时间段从获取到token到token过期的这个时间段(生命周期)
	public String getMerchantId() {
		return merchantId;
	}
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}
	public String getMediaId() {
		return mediaId;
	}
	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getRefreshToken() {
		return refreshToken;
	}
	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}
	public Long getTokenTime() {
		return tokenTime;
	}
	public void setTokenTime(Long tokenTime) {
		this.tokenTime = tokenTime;
	}
	public Long getTokenDuratio() {
		return tokenDuratio;
	}
	public void setTokenDuratio(Long tokenDuratio) {
		this.tokenDuratio = tokenDuratio;
	}
	
	

	

}
